package com.service;

import com.domain.Issue;
import com.baomidou.mybatisplus.extension.service.IService;
import com.domainVO.IssueUserLabeCommentlVO;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.qiniu.common.QiniuException;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 大忽悠
 * @since 2022年02月08日
 */

public interface IIssueService extends IService<Issue> {

    Map<String, Object> getAllQuestionsByTime(Integer startPage, Integer pageSize);

    IssueUserLabeCommentlVO getTargetIssue(Integer issue_id) throws JsonProcessingException;

    Map<String,Object> vagueSearchQuestions(String keyWord, Integer startPage, Integer pageSize);

    Boolean delTargetQuestion(Integer issue_id) throws QiniuException, JsonProcessingException;

    boolean likeAdd(Integer issue_id, int num);

    Map<String,Object> getOwnIssues(Integer startPage,Integer pageSize);

    Map<String,Object> getMyLikeIssues(Integer startPage,Integer pageSize);

    Boolean logicDelTargetQuestion(Integer issue_id);

    Boolean backLogicDelIssue(Integer issue_id,String reason);

    Boolean WeiXinDel(Integer issue_Id);

    Map<String,Object> getAllQuestionsByHot(Integer startPage, Integer pageSize);

    Map<String,Object> getUnauditIssue(Integer startPage, Integer pageSize) throws JsonProcessingException;

    Boolean passIssue(Integer issue_id);
}
